package com.beeantec.jnrerc.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author anthony
 * @since 2021-12-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("course_member_study_log")
public class CourseMemberStudyLog extends Model<CourseMemberStudyLog> {

    private static final long serialVersionUID = 1L;

    private Long id;

    @TableField("courseId")
    private Long courseId;

    @TableField("createTime")
    private Date createTime;

    @TableField("courseName")
    private String courseName;

    @TableField("chapterId")
    private Long chapterId;

    @TableField("chapterName")
    private String chapterName;

    @TableField("periodId")
    private Long periodId;

    @TableField("periodName")
    private String periodName;

    @TableField("memberId")
    private Integer memberId;

    @TableField("periodState")
    private Integer periodState;


    public static final String ID = "id";

    public static final String COURSEID = "courseId";

    public static final String CREATETIME = "createTime";

    public static final String COURSENAME = "courseName";

    public static final String CHAPTERID = "chapterId";

    public static final String CHAPTERNAME = "chapterName";

    public static final String PERIODID = "periodId";

    public static final String PERIODNAME = "periodName";

    public static final String MEMBERID = "memberId";

    public static final String PERIODSTATE = "periodState";

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
